Ext.define('ExtJs.view.message.module.EquipmentGrid',{
	extend:'Ext.grid.Panel',
	alias : 'widget.equipmentGrid',
	moduleId:0,
	initComponent:function(){
		//var sid = this.moduleId;
		var messageGridStore = Ext.create('ExtJs.store.message.module.EquipmentGridStore',{storeId:'govInfoModuleStore_'+this.moduleId});
	
		var govInfoModuleGrid = this;
		Ext.apply(this, {
			store:messageGridStore,
			tbar:[
				{text:this.moduleId,id:'add'+govInfoModuleGrid.moduleId}
				
			],
			columns:[
				{header:'编号',dataIndex:'___key_id',hidden:true},
				{header:'账单号',dataIndex:'number'},
				{header:'库管',dataIndex:'admin_id'},
				{header:'用户',dataIndex:'user_id'},
				{header:'状态',dataIndex:'status',hidden:true},
				{header:'类型',dataIndex:'type_id'},
				{header:'供应商',dataIndex:'supply_id'},
				{header:'数量',dataIndex:'quantity'},
				{header:'单价',dataIndex:'price'},
				{header:'创建时间',dataIndex:'createtime',xtype: 'datecolumn',   format:'Y-m-d'}
			],
			bbar: Ext.create('Ext.PagingToolbar', {
				id:'govInfoGridPagingToolbar_'+this.moduleId,
	            store: messageGridStore,
	            displayInfo: true,
	            displayMsg: '当前 {0} - {1} / {2}',
	            emptyMsg: "没有数据"
	        })
		});
		this.callParent(arguments);
	}
});